package com.lce.beans;

import java.util.Date;

public class Attendance {
    private int id;
    private int uid;
    private String attendancedate;
    private String checkOnTime;
    private String checkOnStatus;
    private String checkOffTime;
    private String checkOffStatus;
    private User user;


    public Attendance() {
    }

    public Attendance(int id, int uid, String attendancedate, String checkOnTime, String checkOnStatus, String checkOffTime, String checkOffStatus) {
        this.id = id;
        this.uid = uid;
        this.attendancedate = attendancedate;
        this.checkOnTime = checkOnTime;
        this.checkOnStatus = checkOnStatus;
        this.checkOffTime = checkOffTime;
        this.checkOffStatus = checkOffStatus;
    }

    public Attendance(int uid, String attendancedate, String checkOnTime, String checkOnStatus, String checkOffTime, String checkOffStatus, User user) {
        this.uid = uid;
        this.attendancedate = attendancedate;
        this.checkOnTime = checkOnTime;
        this.checkOnStatus = checkOnStatus;
        this.checkOffTime = checkOffTime;
        this.checkOffStatus = checkOffStatus;
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return uid
     */
    public int getUid() {
        return uid;
    }

    /**
     * 设置
     * @param uid
     */
    public void setUid(int uid) {
        this.uid = uid;
    }

    /**
     * 获取
     * @return attendancedate
     */
    public String getAttendancedate() {
        return attendancedate;
    }

    /**
     * 设置
     * @param attendancedate
     */
    public void setAttendancedate(String attendancedate) {
        this.attendancedate = attendancedate;
    }

    /**
     * 获取
     * @return checkOnTime
     */
    public String getCheckOnTime() {
        return checkOnTime;
    }

    /**
     * 设置
     * @param checkOnTime
     */
    public void setCheckOnTime(String checkOnTime) {
        this.checkOnTime = checkOnTime;
    }

    /**
     * 获取
     * @return checkOnStatus
     */
    public String getCheckOnStatus() {
        return checkOnStatus;
    }

    /**
     * 设置
     * @param checkOnStatus
     */
    public void setCheckOnStatus(String checkOnStatus) {
        this.checkOnStatus = checkOnStatus;
    }

    /**
     * 获取
     * @return checkOffTime
     */
    public String getCheckOffTime() {
        return checkOffTime;
    }

    /**
     * 设置
     * @param checkOffTime
     */
    public void setCheckOffTime(String checkOffTime) {
        this.checkOffTime = checkOffTime;
    }

    /**
     * 获取
     * @return checkOffStatus
     */
    public String getCheckOffStatus() {
        return checkOffStatus;
    }

    /**
     * 设置
     * @param checkOffStatus
     */
    public void setCheckOffStatus(String checkOffStatus) {
        this.checkOffStatus = checkOffStatus;
    }

    @Override
    public String toString() {
        return "Attendance{" +
                "id=" + id +
                ", uid=" + uid +
                ", attendancedate='" + attendancedate + '\'' +
                ", checkOnTime='" + checkOnTime + '\'' +
                ", checkOnStatus='" + checkOnStatus + '\'' +
                ", checkOffTime='" + checkOffTime + '\'' +
                ", checkOffStatus='" + checkOffStatus + '\'' +
                ", user=" + user +
                '}';
    }
}
